<template>
    <div id="info-btn">
        <button><slot/></button>
    </div>
</template>

<script>
export default {
    props: {
        title :{
            type: String,
            default: '按钮'
        }
    },
    setup () {
        return {}
    }
}
</script>

<style scoped>
#info-btn button {
    width: 100px;
    height: 40px;
    background-color: yellow;
}
</style>